package com.ez.supervise.util;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.StringUtils;

public class ConvertUtil {
    protected ConvertUtil() {
    }
    
    public static List convertIdList(String ids){
	List result = new ArrayList();
	if(StringUtils.isEmpty(ids)){
	    return result;
	}
	String[] idArray = ids.split(",");
	try{
	    for(String id : idArray){
		result.add(Long.valueOf(id));
	    }
	}catch (Exception e){
	    
	}
	
	return result;
    }

}
